var n = getApp();

Page({
    data: {
        info: {}
    },
    onLoad: function(n) {
        this.setData({
            xqid: n.id
        }), this.getData();
    },
    gotoLuckyDraw: function(n) {
        var a = n.currentTarget.dataset.index;
        wx.navigateTo({
            url: "/packageH/newDraw/luckyDraw/luckyDraw?index=" + a + "&tag=my"
        });
    },
    gotoPrize: function() {
        wx.navigateTo({
            url: "/packageH/newDraw/newDrawMyPrize/newDrawMyPrize"
        });
    },
    gotoReward: function() {
        wx.navigateTo({
            url: "/packageH/newDraw/newDrawRecommentReward/newDrawRecommentReward"
        });
    },
    getData: function() {
        var a = this, t = n.getNetAddresss("plugin.luck-draw.frontend.index.myself");
        n._postNetWork({
            url: t,
            data: {},
            success: function(n) {
                var t = n.data;
                1 == t.result ? a.setData({
                    info: t.data
                }) : wx.showToast({
                    title: t.msg,
                    duration: 1e3,
                    icon: "none"
                });
            },
            fail: function(n) {
                console.log(n.msg);
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});